# SPDX-License-Identifier: GPL-2.0
#
# drivers/nand/hinand/Makefile
# add by caizhiyong 2011.11.4
#
KBUILD_EXTRA_SYMBOLS += drivers/mtd/nand/raw/Module.symvers
ccflags-y += -Idrivers/mtd -Iarch/arm/include/uapi -Iarch/arm/mach-hisi/include
ifeq ("$(strip $(HW_ONT_BIN_VERSION))","BIN6")
ccflags-y += -DHW_ONT_CUT_VERSION
endif

ifeq ($(CONFIG_RTOS_MODULE_PRELOADING), y)
hi-nand-y +=  hibase.o hinfc301.o hifmcv100.o hinand.o nand_spl_ids.o
obj-$(CONFIG_MTD_NAND_HINFC301) += hi-nand.o
endif
